board: sama5d2_xplained: Make SPL work on spiflash
authorWenyou Yang <[email protected]>
Wed, 13 Sep 2017 06:58:50 +0000 (14:58 +0800)
committerTom Rini <[email protected]>
Thu, 14 Sep 2017 20:02:44 +0000 (16:02 -0400)
commit23a19e03589c0b1c4daec082f33a1ecdbf5a4475
treeed8e76c277b06a93ea1eb708b6cd7288dc1c6e1b
parent2b21cf55cc767bc1303f22c3f6f7b9d6f0845c02
board: sama5d2_xplained: Make SPL work on spiflash

Because before switching to a lower clock source, we must switch
the clock source first instead of last. So before configuring the
PMC_MCKR register, invoke at91_mck_init_down() first.

As said in datasheet, the the size of SPL must not exceed the maximum
size allowed(64Kbytes).

Signed-off-by: Wenyou Yang <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
board/atmel/sama5d2_xplained/sama5d2_xplained.c
include/configs/sama5d2_xplained.h